<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>ehcarts</title>
    <script src="https://cdn.staticfile.org/echarts/4.3.0/echarts.min.js"></script>
    <script src="https://cdn.jsdelivr.net/gh/apache/echarts-website@asf-site/zh/asset/theme/dark.js"></script>
    <style>
        .container {
            width: 600px;
            height: 400px;

        }
    </style>
</head>
<body>
<div class="container"></div>
<script src="dynamic.js"></script>
<script>
    /**
     * 基本组件
     */
    let init = echarts.init(document.querySelector('.container'), 'dark');
    init.setOption(option);
</script>
</body>
</html>